home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
comm
/
net
/
cslip_sana2.lha
/
slip
/
Makefile.cslip
< prev
next >
Wrap
Makefile
|
1993-07-04
|
2KB
|
85 lines
#
# $Source: hog:Other/networking/sana2/src/slip/RCS/lmkfile,v $
# $State: Exp $
# $Revision: 37.2 $
# $Date: 92/08/25 16:46:05 $
# $Author: kcd $
#
# Amiga SANA-II Example SLIP device driver Make file.
#
# (C) Copyright 1992 Commodore-Amiga, Inc.
#
#
MODNAME = cslip
VERSION = 37
LD_FILE = $(MODNAME).ld
LD_STRIP = $(MODNAME).ld.strip
C_COMPILER = SC
C_COMPILER_OPTS = DEF=CSLIP=1 DATA=FARONLY NOVERSION OPTTIME OPTIMIZE NOSTKCHK PARMS=REG NMINC STRMERGE STREQ MCCONS COMNEST UNSCHAR DEBUG=F IDIR=TcpIp:
ASSEMBLER = A68k
ASSEMBLER_OPTS = -iBig:local/include -iTcpIp:
LINKER = SC link
LINKER_OPTS = $(C_COMPILER_OPTS) NOSTARTUP SMALLCODE SMALLDATA MAP MXREF
LINKER_OPTS_STRIP = NODEBUG NOICONS
C_SOURCES = device_funcs.c cslip.c
ASM_SOURCES = slip_device.asm endcode.asm
OBJECTS = slip_device.o cslip-device_funcs.o cslip.o endcode.o
STARTUP =
LIBS = LIB:amiga.lib
##############################################################################
# Build the stripped load file...
#
$(LD_STRIP): $(LD_FILE)
Slink $(LD_FILE) TO $(LD_STRIP) $(LINKER_OPTS_STRIP)
##############################################################################
# Build the load file...
#
$(LD_FILE): $(OBJECTS) $(LIBS)
$(LINKER) $(STARTUP) $(OBJECTS) TO $(LD_FILE) LIB $(LIBS) $(LINKER_OPTS)
##############################################################################
# Default rules...
#
.c.o:
$(C_COMPILER) $(C_COMPILER_OPTS) $*.c
.asm.o:
$(ASSEMBLER) $*.asm $(ASSEMBLER_OPTS) $*.o
##############################################################################
# All dependencies...
#
slip_device.o : slip_device.asm slip_device.i slip_rev.i
cslip-device_funcs.o : device_funcs.c slip_device.h cslip.h
$(C_COMPILER) $(C_COMPILER_OPTS) device_funcs.c
-delete cslip-device_funcs.o
rename device_funcs.o to cslip-device_funcs.o
cslip.o : cslip.h
endcode.o : endcode.asm
#############################################################################
# Bump services.library revision
#
version:
-BumpRev $(VERSION) $(MODNAME)_rev
##############################################################################
# Delete all object files
#
clean:
-Delete $(OBJECTS)
-Delete $(LD_FILE) $(LD_STRIP) slip.map